<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>淘宝购物车</title>
    <script src="index.js"></script>
    <style>
        h1{
            color: orange;
            text-align: center;
        }
        form{
            margin: 100px auto;
        }
        label,input{
            display: inline;
            margin: 10px 10px auto;
        }
    </style>
</head>
<body>
    <h1>淘宝购物车</h1>
        <label for="单价">单价:</label>
        <input type="text" id="price">
        <label for="数量">数量:</label>
        <input type="text" id="number">
        <button id="p" onclick="plus()">+</button>
        <button id="s" onclick="subtract()">-</button>
        <label for="总金额">总金额:</label>
        <input type="text" id="money">
        <button id="sum" onclick="sum()">总计</button>
</body>
</html>